package com.itlong.cloud.sdk.dao;

import com.itlong.cloud.POJO.VO.sdk.QrcodeSDKGetPassRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      二维码SDK 数据访问接口
 * </desc>
 *
 * @createDate 2018/05/25
 */
@Repository
@Mapper
public interface IQrCodeSDKDao {
    /**
     * <desc>
     *      获取项目秘钥
     * </desc>
     *
     * @param projectId 项目id
     * @return
     * @author Jiaqi.X
     * @createDate 2018/05/25
     */
    String getProjectKey(@Param("projectId") String projectId);

    /**
     * <desc>
     *      身份校验
     * </desc>
     *
     * @param appId
     * @param appsecret
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2018/10/15
     */
    Integer checkRequestIdentity(@Param("appId") String appId,@Param("appsecret") String appsecret,@Param("projectId") String projectId);

    /**
     * <desc>
     *      获取分页数据集
     * </desc>
     *
     * @param params  查询参数
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/30
     */
    List<QrcodeSDKGetPassRecordVO> getPage(Map<String,Object> params);


    /**
     * <desc>
     *      获取分页总数量
     * </desc>
     *
     * @param params 查询参数
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/30
     */
    Integer getPageCount(Map<String,Object> params);
}
